package com.cqu.hhx.driver.entity;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author DJ
 * @create 2020-05-23 18:28
 */
public class DoingOrder {
    //订单Id
    private Long orderId;
    //司机Id
    private Long driverId;
    //顾客Id
    private Long customerId;
    //乘客电话
    private String phone;
    //司机姓名
    private String driverName;
    //价格
    private Float price;
    //起点
    private String startPoint;
    //目的地
    private String destination;
    //距离
    private Float distance;
    //下单时间
    private Timestamp createTime;
    //司机接单时间
    private Timestamp getTime;

    private String usedTime;

    public DoingOrder() {}

    public DoingOrder(NewOrder order,Timestamp getTime,Long driverId,String driverName){
        this.createTime=order.getCreateTime();
        this.customerId=order.getCustomerId();
        this.startPoint=order.getStartPoint();
        this.destination=order.getDestination();
        this.distance=order.getDistance();
        this.getTime=getTime;
        this.driverId=driverId;
        this.price=order.getPrice();
        this.phone=order.getPhone();
        this.driverName=driverName;

    }

    public DoingOrder(Long orderId, Long driverId, Long customerId, String phone,
                      String driverName, Float price, String startPoint,
                      String destination, Float distance, Timestamp createTime, Timestamp getTime) {
        this.orderId = orderId;
        this.driverId = driverId;
        this.customerId = customerId;
        this.phone = phone;
        this.driverName = driverName;
        this.price = price;
        this.startPoint = startPoint;
        this.destination = destination;
        this.distance = distance;
        this.createTime = createTime;
        this.getTime = getTime;
    }

    public String getUsedTime() {
        return usedTime;
    }

    public void setUsedTime(String usedTime) {
        this.usedTime = usedTime;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getDriverId() {
        return driverId;
    }

    public void setDriverId(Long driverId) {
        this.driverId = driverId;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getStartPoint() {
        return startPoint;
    }

    public void setStartPoint(String startPoint) {
        this.startPoint = startPoint;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public Float getDistance() {
        return distance;
    }

    public void setDistance(Float distance) {
        this.distance = distance;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getGetTime() {
        return getTime;
    }

    public void setGetTime(Timestamp getTime) {
        this.getTime = getTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    @Override
    public String toString() {
        return "DoingOrder{" +
                "orderId=" + orderId +
                ", driverId=" + driverId +
                ", customerId=" + customerId +
                ", phone='" + phone + '\'' +
                ", driverName='" + driverName + '\'' +
                ", price=" + price +
                ", startPoint='" + startPoint + '\'' +
                ", destination='" + destination + '\'' +
                ", distance=" + distance +
                ", createTime=" + createTime +
                ", getTime=" + getTime +
                '}';
    }
}
